package com.xinhua.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xinhua.entity.Courses;
import com.xinhua.repository.CoursesRep;

@Component
public class CoursesService {
	@Autowired
	private CoursesRep coursesRep;
	
	public List<Courses> getCourse(){
		return (List<Courses>) coursesRep.findAll();
	}
}
